#pragma once

int trans_str_to_num(char* str);

void print_bin(int temp[]);

int sep_subnet_bin(int net_num);

void creat_new_subnet(int temp_subnet[], int net_num);

int count_host_id(int mask[]);

void cal_ret(int ret_host_id[], int new_temp_net[], int net_num, int host_num);

void print_ret(int new_temp_net[], int ret_host_id[], int net_num, int host_num);